import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
// import router from './router'
import App from './App.vue'
// import { DynamicScroller, DynamicScrollerItem } from 'vue-virtual-scroller'
import './assets/styles.css'
// import 'katex/dist/katex.min.css'
// import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'

// import { useRegisterSW } from 'virtual:pwa-register/vue'

// useRegisterSW({
//   immediate: true,
//   onRegistered(r) {
//     r &&
//       setInterval(() => {
//         r.update()
//       }, 60 * 1000)
//   }
// })

createApp(App)
  // .component('DynamicScroller', DynamicScroller)
  // .component('DynamicScrollerItem', DynamicScrollerItem)
  .use(createPinia().use(piniaPersist))
  // .use(router)
  .mount('#app')
